#ifndef _TEXTURE_2D__
#define _TEXTURE_2D__

#ifdef WIN32
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>
#include <assert.h>
#include <stdio.h>

namespace Graphics
{
  class Texture2D
  {
  public:
    Texture2D(unsigned int width, unsigned int height, unsigned char *data,
	      bool alpha, bool mipmap = true);
    ~Texture2D();

    unsigned int ID();
    void bind();
    bool hasAlpha();
  private:
    unsigned int glID, width, height;
    bool hasalpha;
  };
}

#endif
